﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
    Layout = null;
}
<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>管理用户</title>
    <link href="~/Content/layui/css/layui.css" rel="stylesheet" />
    <link href="~/Content/UserList/index.css" rel="stylesheet" />
    <script type="text/javascript" src="~/Content/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="~/Content/layui/layui.js"></script>
</head>

<body>
    <div id="list">
        <div>
            <h2 style="text-align: center; color: blueviolet">欢迎【管理员】使用本系统</h2>
        </div>
        <div class="layui-block" style="padding:15px 0;">
            <div class="layui-inline">
                <input class="layui-input" name="condition" id="searchCondition" autocomplete="off">
            </div>
            <button onclick="search()" type="button" class="layui-btn">根据姓名模糊查询</button>
            <div class="layui-inline">
                <button onclick="btnAct('add')" type="button" class="layui-btn">新增用户</button>
            </div>
            <div class="layui-inline">
                <button onclick="window.location.href='../Log/Login' " type="button" class="layui-btn">退出系统</button>
            </div>
        </div>
        <!-- 展示数据的列表 -->
        <table class="layui-hide" id="user"></table>
        <div id="list">
            <div class="layui-block" style="padding:15px 0;">
                <div class="layui-inline">
                    <button onclick="window.location.href='/User/UsersList' " type="button" class="layui-btn">重置列表</button>
                </div>
            </div>
        </div>
    <!-- 特殊列模版 -->
    <script type="text/html" id="btn">
        <button onclick="btnAct('edit',{{d.Id}})" type="button" class="layui-btn layui-btn-xs">编辑</button>
        <button onclick="btnAct('del',{{d.Id}})" type="button"
                class="layui-btn layui-btn-danger layui-btn-xs">
            删除
        </button>
    </script>
    <script src="~/Content/UserList/index.js"></script>
</body>
</html>